home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / ftn / bgntri.z / bgntri
Encoding:
Text File  |  2002-10-03  |  5.0 KB  |  133 lines

  1.  
  2.  
  3.  
  4. bbbbggggnnnnttttrrrriiii((((3333GGGG))))                                                          bbbbggggnnnnttttrrrriiii((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      bbbbggggnnnnttttrrrriiii,,,, eeeennnnddddttttrrrriiii - delimit a NURBS surface trimming loop
  10.  
  11. FFFFOOOORRRRTTTTRRRRAAAANNNN 77777777 SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee bbbbggggnnnnttttrrrriiii
  13.  
  14.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee eeeennnnddddttttrrrriiii
  15.  
  16. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  17.      _n_o_n_e
  18.  
  19. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  20.      Use bbbbggggnnnnttttrrrriiii to mark the beginning of a definition for a trimming loop. Use
  21.      eeeennnnddddttttrrrriiii to mark the end of a definition for a trimming loop. A trimming
  22.      loop is a set of oriented curves (forming a closed curve) that defines
  23.      boundaries of a NURBS surface. You include these trimming loop
  24.      definitions in the definition of a NURBS surface.
  25.  
  26.      The definition for a NURBS surface may contain many trimming loops.  For
  27.      example, if you wrote a definition for NURBS surface that resembled a
  28.      rectangle with a hole punched out, the definition would contain two
  29.      trimming loops.  One loop would define the outer edge of the rectangle.
  30.      The other trimming loop would define the hole punched out of the
  31.      rectangle.  The definitions of each of these trimming loops would be
  32.      bracketed by a bbbbggggnnnnttttrrrriiii////eeeennnnddddttttrrrriiii pair.
  33.  
  34.      The definition of a single closed trimming loop may consist of multiple
  35.      curve segments, each described as a piecewise linear curve (see ppppwwwwllllccccuuuurrrr)
  36.      or as a single NURBS curve (see nnnnuuuurrrrbbbbsssscccc), or as a combination of both in
  37.      any order. The only Graphics library calls that can appear in a trimming
  38.      loop definition (between a call to bbbbggggnnnnttttrrrriiii and a call to eeeennnnddddttttrrrriiii) are
  39.      ppppwwwwllllccccuuuurrrr and nnnnuuuurrrrbbbbsssscccc.
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. bbbbggggnnnnttttrrrriiii((((3333GGGG))))                                                          bbbbggggnnnnttttrrrriiii((((3333GGGG))))
  71.  
  72.  
  73.  
  74.      In the following code fragment, we define a single trimming loop that
  75.      consists of one piecewise linear curve and two NURBS curves:
  76.  
  77.           call bgntri
  78.               call pwlcur(. . .)
  79.               call nurbsc(. . .)
  80.               call nurbsc(. . .)
  81.           call endtri
  82.  
  83.  
  84.      The area of the NURBS surface that the system displays is the region in
  85.      the domain to the left of the trimming curve as the curve parameter
  86.      increases.  Thus, the resultant visible region of the NURBS surface is
  87.      inside for a counter-clockwise trimming loop and outside for a clockwise
  88.      trimming loop.  So for the rectangle mentioned earlier, the trimming loop
  89.      for the outer edge of the rectangle should run counter-clockwise, and the
  90.      trimming loop for the hole punched out should run clockwise.
  91.  
  92.      If you use more than one curve to define a single trimming loop, the
  93.      curve segements must form a closed loop (i.e, the endpoint of each curve
  94.      must be the starting point of the next curve, and the endpoint of the
  95.      final curve must be the starting point of the first curve). If the
  96.      endpoints of the curve are sufficiently close together but not exactly
  97.      coincident, the system coerces the them to match.  If the endpoints are
  98.      not sufficiently close, the system generates an error message and ignores
  99.      the entire trimming loop.
  100.  
  101.      If a trimming loop definition contains multiple curves, the direction of
  102.      the curves must be consistent (i.e., the inside must be to the left of
  103.      the curves).  Nested trimming loops are legal as long as the curve
  104.      orientations alternate correctly.  If no trimming information is given
  105.      for a NURBS surface, the entire surface is drawn.
  106.  
  107. NNNNOOOOTTTTEEEE
  108.      On Impact and Infinite Reality llllmmmmccccoooolllloooo cannot be called between bbbbggggnnnnttttrrrriiii and
  109.      eeeennnnddddttttrrrriiii
  110.  
  111.  
  112. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  113.      bgnsur, nurbss, nurbsc, pwlcur, setnur, getnur
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.